package kr.hkit.androidcomplete01.chapter09;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import kr.hkit.androidcomplete01.R;

public class Ch09MainActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch09_main);
	}

	public void mOnClick(View v) {
		Intent intent = null;
		switch (v.getId()) {
		case R.id.ch09_btn01:
			intent = new Intent(this, OptionMenu.class);
			break;

		case R.id.ch09_btn02:
			intent = new Intent(this, OptionMenuXml.class);
			break;
		
		case R.id.ch09_btn03:
			intent = new Intent(this, MenuOnClick.class);
			break;
			
		case R.id.ch09_btn04:
			intent = new Intent(this, ContextMenu.class);
			break;	
	
		case R.id.ch09_btn05:
			intent = new Intent(this, PopupMenuTest.class);
			break;	
		case R.id.ch09_btn06:
			intent = new Intent(this, MenuCheck.class);
			break;	
		case R.id.ch09_btn07:
			intent = new Intent(this, ChangeMenu.class);
			break;	
		}
		startActivity(intent);
	}
}
